<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>

 <h:form>
     <h:outputText value="Cambiar aciento">
     </h:outputText>
     <br>
     </br>
     <h:panelGrid columns="2" style="margin-left:50px" cellpadding="5">
         <h:outputText value="Aciento asignado: 4">
         </h:outputText>
          <br>
     </br>
           <br>
     <br>
        <h:outputText value="Elija su nuevo aciento: " />
        </br>
               </br>
        <p:selectOneButton  value="#{cine.numberant}">
             <f:selectItem  itemLabel="Aciento 01" itemValue="01" />
             <f:selectItem itemLabel="Aciento 02" itemValue="02" /> 
             <f:selectItem  itemLabel="Aciento 03" itemValue="03" />
             <f:selectItem itemLabel="Aciento 04" itemValue="04" /> 
             <f:selectItem  itemLabel="Aciento 05" itemValue="05" />
             <f:selectItem  itemLabel="Aciento 06" itemValue="06" /> 
             <f:selectItem  itemLabel="Aciento 07" itemValue="07" />
             <f:selectItem  itemLabel="Aciento 08" itemValue="08" /> 
             <f:selectItem  itemLabel="Aciento 09" itemValue="09" />
             <f:selectItem  itemLabel="Aciento 10" itemValue="10" /> 
             <f:selectItem  itemLabel="Aciento 11" itemValue="11" />
             <f:selectItem itemLabel="Aciento 12" itemValue="12" /> 
             <f:selectItem  itemLabel="Aciento 13" itemValue="13" />
             <f:selectItem itemLabel="Aciento 14" itemValue="14" /> 
             <f:selectItem  itemLabel="Aciento 15" itemValue="15" />
             <f:selectItem  itemLabel="Aciento 16" itemValue="16" /> 
             <f:selectItem  itemLabel="Aciento 17" itemValue="17" />
             <f:selectItem  itemLabel="Aciento 18" itemValue="18" /> 
             <f:selectItem  itemLabel="Aciento 19" itemValue="19" />
             <f:selectItem  itemLabel="Aciento 20" itemValue="20" /> 
             <f:selectItem itemLabel="Aciento 21" itemValue="21" /> 
             <f:selectItem  itemLabel="Aciento 22" itemValue="22" />
             <f:selectItem  itemLabel="Aciento 23" itemValue="23" /> 
             <f:selectItem  itemLabel="Aciento 24" itemValue="24" />
             <f:selectItem  itemLabel="Aciento 25" itemValue="25" /> 
             <f:selectItem  itemLabel="Aciento 26" itemValue="26" />
             <f:selectItem  itemLabel="Aciento 27" itemValue="27" /> 
             <f:selectItem itemLabel="Aciento 28" itemValue="28" /> 
             <f:selectItem  itemLabel="Aciento 29" itemValue="29" />
             <f:selectItem  itemLabel="Aciento 30" itemValue="30" /> 
             <f:selectItem  itemLabel="Aciento 31" itemValue="31" />
             <f:selectItem  itemLabel="Aciento 32" itemValue="32" /> 
             <f:selectItem  itemLabel="Aciento 33" itemValue="33" />
             <f:selectItem  itemLabel="Aciento 34" itemValue="34" />
              <f:selectItem  itemLabel="Aciento 35" itemValue="35" /> 
             <f:selectItem  itemLabel="Aciento 36" itemValue="36" />
             <f:selectItem  itemLabel="Aciento 37" itemValue="37" /> 
             <f:selectItem  itemLabel="Aciento 38" itemValue="38" />
             <f:selectItem  itemLabel="Aciento 39" itemValue="39" />
             <f:selectItem  itemLabel="Aciento 40" itemValue="40" />
             
        </p:selectOneButton>
    </h:panelGrid>
     <br>
     <p:commandButton value="Elejir aciento:" onclick="cero" />     
     </br>
   
    <br>
    </br>
    <br>      
    <h:outputText id="cero" value="El nuevo numero de su aciento es:#{cine.numberant}" />
    </br>
</h:form>
    </h:body>
</html>

